package com.wu.company.entity;

import javax.persistence.*;

@Entity
@Table(name = "USERAGREEMENT")
public class UserAgreement implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	/** 属性id **/
	private UserAgreementId id;
	/** 属性 userCode **/
	private String userCode;

	/**
	 * 类的默认构造方法
	 */
	public UserAgreement() {
	}
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "supUserCode", column = @Column(name = "SUPUSERCODE")),
			@AttributeOverride(name = "policyNo", column = @Column(name = "POLICYNO")) })
	public UserAgreementId getId() {
		return id;
	}

	public void setId(UserAgreementId id) {
		this.id = id;
	}
	@Column(name = "USERCODE")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

}
